#include "stm32f10x.h"                  // Device header
#include "Buzzer.h"
#include "LightSensor.h"

uint8_t KeyNum;


int main(void){
	

	Buzzer_Init();
	LightSensor_Init();
	
	while(1)
	{
		if(LightSensor_Get()==1)//光线暗的情况
		{
			Buzzer_ON();
		}else
		{
			Buzzer_OFF();
		}
	}
}
